/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package weka.attributeSelection.semiAS.semiClusterAS;

import weka.core.Instances;

/**
 *
 * @author Administrator
 */
public class UnlabeledDistEvalM implements Distance {

    private UnlabeledDistEval m_unlabledDistEval;
    private Instances m_instances;

    public UnlabeledDistEvalM(UnlabeledDistMethod option, Instances data) {
        m_instances = data;
        switch (option) {
            case Correlate:
                m_unlabledDistEval = new CorrUnlabledDistEval(m_instances);
                break;
            case Entropy:
                m_unlabledDistEval = new EntropyUnlabledDistEval(m_instances);
                break;
            default:
                m_unlabledDistEval = new CorrUnlabledDistEval(m_instances);
                break;
        }
    }

    public double getDistance(int i, int j) {
        return m_unlabledDistEval.getDistance(i, j);
    }
}
